import 'package:flutter/material.dart';
import 'package:flutter_app10/view/jk/jk_text.dart';


class PhbTitleCellWidget extends StatelessWidget {

  final String title1;
  final String title2;
  final String title3;

  const PhbTitleCellWidget({Key key, @required this.title1, @required this.title2, @required this.title3}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 16),
      height: 30,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Expanded(
            flex: 4,
            child: JKText(
              data: title1,
              fontSize: 11,
              color: Colors.grey,
            ),
          ),
          Expanded(
            flex: 6,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Expanded(
                  flex: 1,
                  child: JKText(
                    data: title2,
                    fontSize: 11,
                    color: Colors.grey,
                    textAlign: TextAlign.right,
                  ),
                ),
                Expanded(
                  flex: 1,
                  child: JKText(
                    data: title3,
                    fontSize: 11,
                    color: Colors.grey,
                    textAlign: TextAlign.right,

                  ),
                ),
              ],
            ),
          )
        ],
      ),
    );
    ;
  }
}
